#ifndef TextButton_H_
#define TextButton_H_
#include "IRenderable.h"
#include "FontManager.h"
#include "GameBase.h"
#include <SFML\Graphics.hpp>

class TextButton : public IRenderable
{
private:
	sf::Text *_mTextIcon;

	String _mText, _mFontName;
	Vector2<int> _mPosition;
	Color _mFontColor;

public:
	TextButton(GameBase *, String, String, Vector2<int>);
	~TextButton();

	virtual void Render(RenderWindow *);
	virtual void Update();
	virtual bool Load(FontManager *);

	sf::Text *GetButtonIcon();
	void SetText(String);
	void SetColor(Color);

	void *OnClick;
};
#endif